Skip to content

Add Shared Protocol Errors, Events, and Escrow Initialization#47

Merged
Tybravo merged 5 commits into
SwiftChainn:mainfrom
codebestia:feat/drips-pr
May 1, 2026
Merged

Add Shared Protocol Errors, Events, and Escrow Initialization#47
Tybravo merged 5 commits into
SwiftChainn:mainfrom
codebestia:feat/drips-pr

Conversation

@codebestia

Copy link
Copy Markdown
Contributor

Summary

  • Added a shared SwiftChainError contract error enum with documented protocol-wide variants and discriminant tests.
  • Added shared event topic constants/helpers and typed #[contracttype] event payloads for delivery and escrow indexing.
  • Updated escrow initialization to store admin, token, platform fee bps, and protocol version.
  • Added ProtocolInitialized event emission and tests for one-time initialization, stored config, and event payloads.
  • Wired shared errors into escrow and delivery initialization paths.

Related Issues

Closes #2
Closes #3
Closes #6

@drips-wave

drips-wave Bot commented Apr 27, 2026

Copy link
Copy Markdown

@codebestia Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Tybravo

Tybravo commented Apr 28, 2026

Copy link
Copy Markdown
Collaborator

@codebestia
Please resolve conflicts

@Tybravo Tybravo merged commit 4cb0510 into SwiftChainn:main May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants